package info.magnolia.blossom.sample.cv;

import info.magnolia.blossom.sample.cv.model.CurriculumVitae;
import info.magnolia.module.blossom.annotation.Template;
import info.magnolia.module.blossom.annotation.TemplateDescription;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created with IntelliJ IDEA.
 * User: valentinzuld
 * Date: 2/25/13
 * Time: 3:50 PM
 * To change this template use File | Settings | File Templates.
 */

@Template(title = "Add New CV", id = "blossomSample:components/addcv")
@TemplateDescription("Add a new CV to the list")
@Controller
public class AddCV {

    @RequestMapping("/cvtemplate/addcv")
    public ModelAndView render(){
        return new ModelAndView("components/addCV.jsp", "cvForm", new CurriculumVitae());
    }
}
